<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Name       : Beach Sunset
Description: A two-column, fixed-width design for 1024x768 screen resolutions.
Version    : 1.0
Released   : 20090416

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>EliminarServicioDatos</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<style type="text/css">
<!--
.Estilo1 {font-size: 36px ; color: #FFFFFF}
-->
</style>
</head>
<body>
<div id="wrapper">
		<div id="header">	
 <br />
		<div id="menu">				      	
				<li  class="active"><a href="HOME.php" title="HOME">HOME</a></li>
				<li><a href="INSERTAR.php" title="INSERTA">INSERTAR</a></li>
				<li><a href="ELIMINAR.php" title="ELIMINAR">ELIMINAR</a></li>
				<li><a href="CONSULTAR.php" title="CONSULTAR">CONSULTAR</a></li>
				<li><a href="MODIFICAR.php" title="MODIFICAR">MODIFICAR</a></li>
	  	</div>  <!-- end #menu -->			
  
	
		<div id="search">
			<div id="menu">
					<li><a href="MOSTRAR.php" title="MOSTRAR">MOSTRAR</a></li>				
			</div> <!-- end #menu -->
		</div> <!-- end #search -->
</div>    <!-- end #header -->			
	
	<div id="logo">
			<h2 class="Estilo1">Registro de Datos </h2>
		    <div align="left"></div>
	</div> 	<!-- end #logo -->  	
</div> <!-- end *header- wrapper -->
	
	<hr />
	
	<div id="page"><!-- end #content -->
  <!-- end #sidebar -->
<div style="clear: both;">
  <?php 

	// capturo los parametros
	$idServicio = $_POST['idServicio'];
	
  	$con = OCILogon ('SPA','1234') or die( "No se pudo conectar a la base de Datos!") or die (ocierror());
  	$query = "DELETE FROM SERVICIO
			  WHERE PK_ID_SERVICIO = $idServicio";

	 $sentencia=ociparse($con,$query);	 

	   $c =ociexecute($sentencia);
	 
ocicommit($con);
  	
	if ($c) {
?>
  <div align="center">
  <strong><font size="2" face="Arial, Helvetica, sans-serif" color="#0066FF">Se elimino; el 
servicio del sistema</font></strong>
<?php
} else {
?>
<strong><font color="#990000" size="2" face="Arial, Helvetica, sans-serif">Error 
al eliminar el servicio ( Error: <?php echo ocierror(); ?>)</font></strong></div>
<?php
}
?>
<br />
<div align="center">
<a href="MostrarServicio.php">Mostrar Servicio </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="InsertarServicio.php">Agregar Servicio </a><br />
</div>
   </div>
<p>&nbsp;</p>
</div>
<!-- end #page -->
		
<div id="footer">
	<p> Design by <a href="http://www.freecsstemplates.org/">Nubielis, Eduardo, Daniel </a></p>
</div><!-- end #footer -->

</body>
</html>